<div class="debate-video">
<?php if(isset($video_code) && $video_code!='' && $video_type=='youtube'):?>
	<object width="425" height="344">
		<param name="movie" value="http://www.youtube.com/v/<?php echo $video_code ?>&hl=en&fs=1&showinfo=0"></param>
		<param name="allowFullScreen" value="true"></param>
		<param name="allowscriptaccess" value="always"></param>
		<embed src="http://www.youtube.com/v/<?php echo $video_code?>&hl=en&fs=1&showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
	</object>
<?php elseif(isset($video_code) && $video_code!='' && $video_type=='dailymotion'):?>
	<object width="420" height="339">
		<param name="movie" value="http://www.dailymotion.com/swf/<?php echo $video_code ?>" />
		<param name="allowFullScreen" value="true" />
		<param name="allowScriptAccess" value="always" />
		<embed src="http://www.dailymotion.com/swf/<?php echo $video_code ?>" type="application/x-shockwave-flash" width="420" height="339" allowFullScreen="true" allowScriptAccess="always"></embed>
	</object>
<?php elseif(isset($video_code) && $video_code!='' && $video_type=='vimeo'):?>
	<object width="400" height="302">
		<param name="allowfullscreen" value="true" />
		<param name="allowscriptaccess" value="always" />
		<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=<?php echo $video_code?>&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" />
		<embed src="http://vimeo.com/moogaloop.swf?clip_id=<?php echo $video_code?>&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed>
	</object>
<?php elseif(isset($video_code) && $video_code!='' && $video_type=='seesmic'):?>
	<object width='435' height='355'>
		<param name='movie' value='http://seesmic.com/embeds/wrapper.swf'/>
		<param name='bgcolor' value='#666666'/><param name='allowFullScreen' value='true'/>
		<param name='allowScriptAccess' value='always'/>
		<param name='flashVars' value='video=<?php echo $video_code ?>&amp;version=threadedplayer'/>
		<embed src='http://seesmic.com/embeds/wrapper.swf' type='application/x-shockwave-flash' flashVars='video=<?php echo $video_code ?>&amp;version=threadedplayer' allowFullScreen='true' bgcolor='#666666' allowScriptAccess='always' width='435' height='355'></embed>
	</object>
<?php else: ?>
	Unknown video 
<?endif; ?>
</div>